package service;

import entity.Linkman;
import mapper.LinkmanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LinkmanServiceImpl implements LinkmanService{
    @Autowired
    private LinkmanMapper linkmanMapper;
    @Override
    public boolean insert(Linkman linkman) {
        return linkmanMapper.insert(linkman)>0?true:false;
    }

    @Override
    public boolean delete(Integer id) {
        return linkmanMapper.delete(id)>0?true:false;
    }

    @Override
    public boolean update(Linkman linkman) {
        return linkmanMapper.update(linkman)>0?true:false;
    }

    @Override
    public List<Linkman> selectAll() {
        return linkmanMapper.selectAll();
    }
}
